import axios from 'axios'

export const getJieDaoZ = async () => {
  const res = await axios.post(
    'http://192.168.88.177:8084/online/range/getJDByXZQ',
    {
      xzq: '白云区',
    },
    { headers: { 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8' } },
  )
  return res
}
// http://192.168.88.177:8084/online/range/getCSQByJD
export const getCSQByJD = async (jd) => {
  const res = await axios.post(
    'http://192.168.88.177:8084/online/range/getCSQByJD',
    {
      jd: jd,
    },
    { headers: { 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8' } },
  )
  return res
}
// http://192.168.88.177:8084/online/range/getGeomByAddress
export const getGeomByAddress = async (address) => {
  const res = await axios.post(
    'http://192.168.88.177:8084/online/range/getGeomByAddress',
    address,
    { headers: { 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8' } },
  )
  return res
}
